package opengameflow.framework.utils;

public class Point {

	public static final String TAG = Point.class.getCanonicalName();
	
	private int x;
	private int y;
	
	public Point() {
		this(0, 0);
	}
	
	public Point(int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	public int getX() { return this.x; }
	public int getY() { return this.y; }
	public void setX(int x) { this.x = x; }
	public void setY(int y) { this.y = y; }
	
	public boolean equals(Point other) {
		return ((this.x == other.getX()) 
				&& (this.y == other.getY()));
	}
	
	public String toString(){
		return String.format("[%s][X:%d][Y:%d]", 
				TAG, x, y);
	}
	
	public static Point Zero() {
		return new Point();
	}
	public static boolean equals(Point a, Point b) {
		return ((a.getX() == b.getX()) && (a.getY() == b.getY())); 
	}
}
